package cn.getech.data.metadata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "采集表信息变更通知历史")
@TableName("collection_notification_history")
public class CollectionNotificationHistory  implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("通知接收人id")
    @TableField("received_id")
    private Long receivedId;


    @ApiModelProperty("通知接收人id")
    @TableField("notification_user_id")
    private Long notificationUserId;


    @ApiModelProperty("通知接收人id")
    @TableField("notification_received_id")
    private Long notificationReceivedId;

    @ApiModelProperty("通知类型 1为邮箱")
    @TableField("notification_type")
    private String notificationType;

    @ApiModelProperty("通知接收人邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("通知接收人名称")
    @TableField("received_name")
    private String receivedName;

    /**
     * 任务类型   1为元数据类型  2为质量列表类型  。。。
     */
    @TableField(value = "relatedness_type")
    private String relatednessType;

    @ApiModelProperty(value = "通知内容")
    @TableField("notification_content")
    private String notificationContent;

    @ApiModelProperty(value = "通知时间")
    @TableField("notification_time")
    private Date notificationTime;

    @ApiModelProperty(value = "通知表题")
    @TableField("notification_title")
    private String notificationTitle;

    @ApiModelProperty(value = "通知是否成功 1成功 0失败")
    @TableField("notification_flag")
    private Integer notificationFlag;

    /**
     * 创建理时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty("租户id")
    @TableField(value = "tenant_id")
    private Integer tenantId;
}
